Skip to content

Rename local pacman db if needed #619

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 25, 2025

Conversation

dscho
Copy link
Member

@dscho dscho commented May 23, 2025

There was a problem with the most recent sync runs in git-sdk-64 (and in git-sdk-arm64, but not git-sdk-32) because the local copy of the Pacman database was still named git-for-windows.db instead of git-for-windows-x86_64.db.

This fixes that.

It's like the (old) Pacman version that git-sdk-32 has that allowed it to pass.

@dscho dscho self-assigned this May 23, 2025
@dscho dscho marked this pull request as ready for review May 23, 2025 17:08
@dscho
Copy link
Member Author

dscho commented May 24, 2025

/deploy git-extra

The i686/x86_64 and the arm64 workflow runs were started.

dscho added 2 commits May 24, 2025 09:37
Recently we switched from the old Pacman repository that was hosted on
Azure Blobs in my personal Azure account to the new one that is hosted
at https://github.com/git-for-windows/pacman-repo.

To make that work, we needed to rename the Pacman database from the
generic `git-for-windows.db` to `git-for-windows-<arch>.db` where
`<arch>` is the architecture of the current MSYS2 runtime.

Unfortunately, the `sync` workflow of the `git-sdk-*` repositories was
not quite prepared for that rename and could no longer find the
`mingw-w64-git-extra` package to install.

Side note: This did not affect the `git-sdk-32` repository because that
is stuck with an older Pacman version that did not quite care about the
current version of the `mingw-w64-git-extra` package when being asked
to reinstall it.

Let's make sure that the database file is renamed as appropriate.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho force-pushed the rename-local-pacman-db-if-needed branch from 8d7af1b to f3272c1 Compare May 24, 2025 07:56
@dscho
Copy link
Member Author

dscho commented May 24, 2025

/deploy git-extra

The i686/x86_64 and the arm64 workflow runs were started.

dscho added a commit to git-for-windows/git-sdk-64 that referenced this pull request May 24, 2025
This is needed to help the deployment of
git-for-windows/build-extra#619.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho merged commit abc4db4 into git-for-windows:main May 25, 2025
9 checks passed
@dscho dscho deleted the rename-local-pacman-db-if-needed branch May 25, 2025 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant